from django.db import models

# Create your models here.


class ATOP_CD_USER_INFO(models.Model):
    """研发云用户信息表"""
    user_id = models.CharField(max_length=32, unique=False, null=False)
    user_name = models.CharField(max_length=32, unique=False, null=False)
    name = models.CharField(max_length=128, unique=False, null=False)
    email = models.EmailField(max_length=64, unique=False, null=False)
    mobile = models.CharField(max_length=64, unique=False, null=False)
    org_id = models.CharField(max_length=32, unique=False, null=False)
    status = models.CharField(max_length=1, unique=False, null=False)
    province = models.CharField(max_length=32, unique=False, null=False)
    sync_time = models.DateTimeField(unique=False, null=False)
    partiton_field = models.CharField(max_length=32, unique=False, null=False)

    class Meta:
        db_table = 'ATOP_CD_USER_INFO'


class ATOP_CD_ORG_INFO(models.Model):
    """研发云组织信息表"""
    org_id = models.CharField(max_length=32, unique=False, null=False)
    org_name = models.CharField(max_length=32, unique=False, null=False)
    org_shout_name = models.CharField(max_length=128, unique=False, null=False)
    parent_id = models.CharField(max_length=64, unique=False, null=False)
    state = models.CharField(max_length=1, unique=False, null=False)
    province = models.CharField(max_length=32, unique=False, null=False)

    class Meta:
        db_table = 'ATOP_CD_ORG_INFO'